local blaze = require "blaze"
local game = require "club.threecard.blackjack"

local M = game.kbe.component("Seat")

function M.__init__(self)
end

function M:set_no(old)
    if game.kbe.player() == self.owner then
        self.log.debug(string.format("我的座位号：%s", self.no))
    end

    if self.no > 0 then
        game.store.room.on_enter(self.owner);
    end
end

function M:change(target_no)
    self:cellCall("change", target_no)
end

return M